import Vue from 'vue'
import App from './App'
import store from './store'
import router from './router'
import Cookies from 'js-cookie'

import Element from 'element-ui'
import './assets/styles/element-variables.scss'
import './assets/icons' // icon
import '@/assets/styles/index.scss' // global css
import '@/assets/styles/ruoyi.scss' // ruoyi css
//全局组件
import "@/components.js"
import './permission' // permission control

// 自定义表格工具扩展
import Avue from '@smallwei/avue'
import '@smallwei/avue/lib/index.css'
import {ossAli} from '@/config/env'
import "@riophae/vue-treeselect/dist/vue-treeselect.css";

Vue.use(Avue, {
  ali: ossAli
})

import permission from './directive/permission'
Vue.use(permission)

Vue.use(Element, {
  size: Cookies.get('size') || 'medium'
})


Vue.config.productionTip = false

import Print from 'vue-print-nb'
Vue.use(Print);

import tools from "@/utils/tools";
Vue.use(tools)


import { Base64 } from 'js-base64';
Vue.use(Base64);

new Vue({
  el: '#app',
  router,
  store,
  render: h => h(App)
})
